﻿USE [tyajz]
GO

/****** Object:  Table [dbo].[SystemVariables]    Script Date: 10/2/2012 1:27:01 AM ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[SystemVariables](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Type] [nvarchar](50) NOT NULL,
	[Value] [ntext] NOT NULL,
	[CreateDT] [datetime] NOT NULL,
	[ModifiedDT] [datetime] NOT NULL,
	[LastModifiedUser] [int] NOT NULL,
 CONSTRAINT [PK_SystemVariables] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

ALTER TABLE [dbo].[SystemVariables]  WITH CHECK ADD  CONSTRAINT [FK_SystemVariables_User] FOREIGN KEY([LastModifiedUser])
REFERENCES [dbo].[User] ([Id])
GO

ALTER TABLE [dbo].[SystemVariables] CHECK CONSTRAINT [FK_SystemVariables_User]
GO


